package com.lwbldy.modules.student.service.impl;

import com.lwbldy.modules.student.domain.Level;
import com.lwbldy.modules.student.mapper.LevelDao;
import com.lwbldy.modules.student.service.LevelService;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;

/**
 * 层次 service 实现
 * @author lwb
 * @email lwbldy@163.com
 * @date 2022-06-13 09:37:52
 */
@Service("levelService")
public class LevelServiceImpl implements LevelService {

    @Autowired
    LevelDao levelDao;

    @Override
    public int save(Level t) {
        return levelDao.save(t);
    }

    @Override
    public int saveBatch(List<Level> list) {
        return levelDao.saveBatch(list);
    }

    @Override
    public int update(Level t) {
        return levelDao.update(t);
    }

    @Override
    public int delete(Object id) {
        return levelDao.delete(id);
    }

    @Override
    public int deleteBatch(Object[] ids) {
        return levelDao.deleteBatch(ids);
    }

    @Override
    public Level queryObject(Object id) {
        return levelDao.queryObject(id);
    }

    @Override
    public List<Level> queryList(Map<String, Object> map) {
        return levelDao.queryList(map);
    }

    @Override
    public int queryTotalByMap(Map<String, Object> map) {
        return levelDao.queryTotalByMap(map);
    }

    @Override
    public int queryTotal() {
        return levelDao.queryTotal();
    }

    @Override
    public List<Level> queryBySchoolId(int schoolId) {
        return levelDao.queryBySchoolId(schoolId);
    }

}
